//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package wudashan.ui;

import javax.swing.JTextArea;
import javax.swing.text.BadLocationException;
import javax.swing.text.SimpleAttributeSet;

public class LogTextArea extends JTextArea {
    public LogTextArea() {
        this.setRows(15);
        this.setLineWrap(true);
    }

    public void printLog(String message, Object... params) {
        try {
            String str = String.format(message, params) + "\r\n";
            this.getDocument().insertString(this.getDocument().getLength(), str, new SimpleAttributeSet());
            str = "=========================================================================\r\n";
            this.getDocument().insertString(this.getDocument().getLength(), str, new SimpleAttributeSet());
            this.setCaretPosition(this.getText().length());
        } catch (BadLocationException var4) {
            var4.printStackTrace();
        }

    }
}
